package com.example.oracle.service.serviceImpl;
import com.example.oracle.mapper.TaskMapper;
import com.example.oracle.pojo.Task;
import com.example.oracle.pojo.system.RequestMap;
import com.example.oracle.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liu
 */
@Service
public class TaskServiceImpl implements TaskService {
    @Autowired
    TaskMapper taskMapper;

    @Override
    public List<Task> selects(RequestMap<Task> task) {
        return taskMapper.selects(task);
    }

    @Override
    public Task getById(Long taskId) {
        return taskMapper.getById(taskId);
    }

    @Override
    public int insertTask(Task task) {
        return taskMapper.insertTask(task);
    }

    @Override
    public int updateTask(Task task) {
        return taskMapper.updateTask(task);
    }

    @Override
    public int count() {
        return taskMapper.count();
    }
}
